home *** CD-ROM | disk | FTP | other *** search
- Path: galaxy.ucr.edu!not-for-mail
- From: thp@cs.ucr.edu (Tom Payne)
- Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++
- Subject: Re: C/C++ knocks the crap out of Ada
- Followup-To: comp.lang.ada,comp.lang.c,comp.lang.c++
- Date: 4 Mar 1996 03:37:45 GMT
- Organization: University of California, Riverside
- Message-ID: <4hdoi9$ag9@galaxy.ucr.edu>
- References: <JSA.96Feb16135027@organon.com> <4gaa6l$8mk@post.gsfc.nasa.gov> <4gd94r$isu@mack.rt66.com> <1996Feb22.005518.13396@leeweyr.sccsi.com> <4gvrffINNlqo@anvil.ugrad.cs.ubc.ca> <4h8233$c7p$1@canberra.DIALix.oz.au>
- NNTP-Posting-Host: corvette.ucr.edu
- X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
-
- Shayne Flint (shayne@canberra.DIALix.oz.au) wrote:
- : c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) writes:
- :
- : >What is intrinsically unsafe about C? I could write a strict,
- : >standard-conforming, anally-retentive program in any language that could kill
- : >people (maliciously, of course).
- : Yes, of course, but could you guarantee that a program written in such a way
- : would NOT kill people.
-
- What scares me is that many C/C++ programmers think they have written
- a conforming program when they have not. For instance, many are
- astonished to learn that their signal-handler violates the standards
- if it reads a global variable (even one that is volatile and atomic).
- It's almost impossible to write efficient real-time programs in
- conforming C/C++, which essentially rules out responding to external
- events except through polling.
-
- Tom Payne (thp@cs.ucr.edu)
-
-
-